using System;
using System.Xml.Linq;
using OrbitOne.CRMLyncInfoDashboard.CRM.OrganizationData;

namespace OrbitOne.CRMLyncInfoDashboard.CRM
{
    public class SystemFormModel
    {
        private readonly SystemForm m_form;

        public SystemFormModel(SystemForm form)
        {
            m_form = form;
        }

        public string Name
        {
            get { return m_form.Name; }
        }

        public Guid FormId
        {
            get { return m_form.FormId; }
        }

        public XElement FormXml
        {
            get { return XElement.Parse(m_form.FormXml); }
        }
    }
}